/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.    
 */
package dk.redillusions.jdbc.proxy;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.SQLWarning;

import edu.umd.cs.findbugs.annotations.SuppressWarnings;

/**
 * Empty implementation of a {@link IStatementDelegate}.
 * 
 * @author Sune Wettersteen
 * 
 */
@SuppressWarnings(value = { "NP_NONNULL_RETURN_VIOLATION" })
public abstract class StatementAdapterDelegate implements IStatementDelegate {
    // CHECKSTYLE:OFF
    /*
     * Justification: This class will explode with "design for extension"
     * warnings. The class has the behaviour which is intended for it, and we
     * don't want those warnings.
     */

    /** {@inheritDoc} */
    @Override
    public void addBatch(final String sql) throws SQLException {
        // Do nothing
    }

    /** {@inheritDoc} */
    @Override
    public void cancel() throws SQLException {
        // Do nothing
    }

    /** {@inheritDoc} */
    @Override
    public void clearBatch() throws SQLException {
        // Do nothing
    }

    /** {@inheritDoc} */
    @Override
    public void clearWarnings() throws SQLException {
        // Do nothing
    }

    /** {@inheritDoc} */
    @Override
    public void close() throws SQLException {
        // Do nothing
    }

    /** {@inheritDoc} */
    @Override
    public boolean execute(final String sql) throws SQLException {
        // Do nothing
        return false;
    }

    /** {@inheritDoc} */
    @Override
    public boolean execute(final String sql, int autoGeneratedKeys) throws SQLException {
        // Do nothing
        return false;
    }

    /** {@inheritDoc} */
    @Override
    public boolean execute(final String sql, int[] columnIndexes) throws SQLException {
        // Do nothing
        return false;
    }

    /** {@inheritDoc} */
    @Override
    public boolean execute(final String sql, String[] columnNames) throws SQLException {
        // Do nothing
        return false;
    }

    /** {@inheritDoc} */
    @Override
    public int[] executeBatch() throws SQLException {
        // Do nothing
        return new int[0];
    }

    /** {@inheritDoc} */
    @Override
    public ResultSet executeQuery(final String sql) throws SQLException {
        // Do nothing
        return null;
    }

    /** {@inheritDoc} */
    @Override
    public int executeUpdate(final String sql) throws SQLException {
        // Do nothing
        return 0;
    }

    /** {@inheritDoc} */
    @Override
    public int executeUpdate(final String sql, int autoGeneratedKeys) throws SQLException {
        // Do nothing
        return 0;
    }

    /** {@inheritDoc} */
    @Override
    public int executeUpdate(final String sql, int[] columnIndexes) throws SQLException {
        // Do nothing
        return 0;
    }

    /** {@inheritDoc} */
    @Override
    public int executeUpdate(final String sql, String[] columnNames) throws SQLException {
        // Do nothing
        return 0;
    }

    /** {@inheritDoc} */
    @Override
    public Connection getConnection() throws SQLException {
        // Do nothing
        return null;
    }

    /** {@inheritDoc} */
    @Override
    public int getFetchDirection() throws SQLException {
        // Do nothing
        return 0;
    }

    /** {@inheritDoc} */
    @Override
    public int getFetchSize() throws SQLException {
        // Do nothing
        return 0;
    }

    /** {@inheritDoc} */
    @Override
    public ResultSet getGeneratedKeys() throws SQLException {
        // Do nothing
        return null;
    }

    /** {@inheritDoc} */
    @Override
    public int getMaxFieldSize() throws SQLException {
        // Do nothing
        return 0;
    }

    /** {@inheritDoc} */
    @Override
    public int getMaxRows() throws SQLException {
        // Do nothing
        return 0;
    }

    /** {@inheritDoc} */
    @Override
    public boolean getMoreResults() throws SQLException {
        // Do nothing
        return false;
    }

    /** {@inheritDoc} */
    @Override
    public boolean getMoreResults(final int current) throws SQLException {
        // Do nothing
        return false;
    }

    /** {@inheritDoc} */
    @Override
    public int getQueryTimeout() throws SQLException {
        // Do nothing
        return 0;
    }

    /** {@inheritDoc} */
    @Override
    public ResultSet getResultSet() throws SQLException {
        // Do nothing
        return null;
    }

    /** {@inheritDoc} */
    @Override
    public int getResultSetConcurrency() throws SQLException {
        // Do nothing
        return 0;
    }

    /** {@inheritDoc} */
    @Override
    public int getResultSetHoldability() throws SQLException {
        // Do nothing
        return 0;
    }

    /** {@inheritDoc} */
    @Override
    public int getResultSetType() throws SQLException {
        // Do nothing
        return 0;
    }

    /** {@inheritDoc} */
    @Override
    public int getUpdateCount() throws SQLException {
        // Do nothing
        return 0;
    }

    /** {@inheritDoc} */
    @Override
    public SQLWarning getWarnings() throws SQLException {
        // Do nothing
        return null;
    }

    /** {@inheritDoc} */
    @Override
    public boolean isClosed() throws SQLException {
        // Do nothing
        return false;
    }

    /** {@inheritDoc} */
    @Override
    public boolean isPoolable() throws SQLException {
        // Do nothing
        return false;
    }

    /** {@inheritDoc} */
    @Override
    public void setCursorName(final String name) throws SQLException {
        // Do nothing
    }

    /** {@inheritDoc} */
    @Override
    public void setEscapeProcessing(final boolean enable) throws SQLException {
        // Do nothing
    }

    /** {@inheritDoc} */
    @Override
    public void setFetchDirection(final int direction) throws SQLException {
        // Do nothing
    }

    /** {@inheritDoc} */
    @Override
    public void setFetchSize(final int rows) throws SQLException {
        // Do nothing
    }

    /** {@inheritDoc} */
    @Override
    public void setMaxFieldSize(final int max) throws SQLException {
        // Do nothing
    }

    /** {@inheritDoc} */
    @Override
    public void setMaxRows(final int max) throws SQLException {
        // Do nothing
    }

    /** {@inheritDoc} */
    @Override
    public void setPoolable(final boolean poolable) throws SQLException {
        // Do nothing
    }

    /** {@inheritDoc} */
    @Override
    public void setQueryTimeout(final int seconds) throws SQLException {
        // Do nothing
    }

    /** {@inheritDoc} */
    @Override
    public boolean isWrapperFor(final Class<?> iface) throws SQLException {
        // Do nothing
        return false;
    }

    /** {@inheritDoc} */
    @Override
    public <T> T unwrap(final Class<T> iface) throws SQLException {
        // Do nothing
        return null;
    }

}
